<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<s:hidden name="userId" id="userId"/>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">行业分类</td>
		<td class="queryContent">
		    <select id="queryTmplType1" name="queryTmplType1" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
		    		<option value="">[不限]</option>
					<option value="1">互联网</option>
					<option value="2">能源</option>
					<option value="3">农牧渔</option>
					<option value="4">医药</option>
					<option value="5">房地产</option>
					<option value="6">机构</option>
					<option value="7">交通</option>
					<option value="8">旅游</option>
					<option value="9">教育</option>
					<option value="10">餐饮</option>
					<option value="11">金融</option>
			</select> 
		</td>
		<td class="queryTitle" width="68px">场景分类</td>
		<td class="queryContent">
		    <select id="queryTmplType2" name="queryTmplType2" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
		    		<option value="">[不限]</option>
					<option value="12">创业路演</option>
					<option value="13">企业培训</option>
					<option value="14">工作汇报</option>
					<option value="15">发布会</option>
					<option value="16">产品推广</option>
					<option value="17">教学培训</option>
					<option value="18">政府报告</option>
					<option value="19">热点主题</option>
			</select> 
		</td>
		<td class="queryTitle" width="68px">制作状态</td>
		<td class="queryContent">
			<select id="queryPublish" name="queryPublish" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
		    		<option value="">[不限]</option>
					<option value="0">未发布</option>
					<option value="1">已发布</option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="queryTitle" width="68px">模版ID</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryTmplId" />
		</td>
		<td class="queryTitle" width="68px">模版名</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryTmplName" />
		</td>
		<td class="queryTitle" width="68px">作者</td>
		<td class="queryContent">
		    <select id="queryUserId" name="queryUserId" class="easyui-combobox" panelHeight="200px" editable="false" style="width: 180px">
			</select>
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery(1)">查询</a>
		</td>
	</tr>
</table>

<table id="tmplGrid"></table>

<div id="addDlg" class="easyui-window" title="" closed="true" style="width:1000px; height:auto;text-align:center; background: #fff;">
	<div class="tabs-panels tabs-panels-noborder" style="width: 980px;" id="frameDiv">
		<div class="panel" style="display: block; width: 980px;">
			<div title="" class="panel-body panel-body-noheader panel-body-noborder" style="width: 980px;">
			<iframe scrolling="auto" frameborder="0" id="addFrame" name="addFrame" src="" style="width: 100%; height: 100%;"></iframe>
			</div>
		</div>
	</div>
</div>
<div id="editDlg" class="easyui-window" title="" closed="true" style="width:1000px; height:auto;text-align:center; background: #fff;">
	<div class="tabs-panels tabs-panels-noborder" style="width: 980px;" id="frameDiv">
		<div class="panel" style="display: block; width: 980px;">
			<div title="" class="panel-body panel-body-noheader panel-body-noborder" style="width: 980px;">
			<iframe scrolling="auto" frameborder="0" id="editFrame" name="editFrame" src="" style="width: 100%; height: 100%;"></iframe>
			</div>
		</div>
	</div>
</div>

<div id="saleListDlg" class="easyui-window" title="" closed="true" style="width:900px; height:500px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="saleForm"  method="POST">
			<table border="0" class="queryTable" width="400px" height="auto" style="margin-bottom:0px;" id="saleTable">
				<tr>
				    <td class="queryTitle" width="80px">模版大分类</td>
					<td class="queryContent" width="100px">
						<span id="sTopType" style="color:red;">PPT</span>
					</td>
					<td class="queryTitle" width="80px">设计模版ID</td>
					<td class="queryContent" width="100px">
						<span id="sDId" style="color:red;"></span>
					</td>
				</tr>
			</table>
			<table id="saleGrid"></table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="saleBtn">
		<a class="easyui-linkbutton" iconCls="icon-add" href="javascript:void(0)" onclick="addSale()">添加价目</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="delSale()">删除价目</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="closeSaleList()">关闭</a>
    </div>
</div>
<div id="saleEditDlg" class="easyui-window" title="" closed="true" style="width:600px; height:200px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px">
		<form id="saleEditForm"  method="POST">
			<table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="saleEditTable">
				<tr>	
					<td class="queryTitle" width="120px">模版类型</td>
					<td class="queryContent">
						<span id="sEdtType" style="color:red;">PPT</span>
					</td>
					<td class="queryTitle" width="120px">设计模版ID</td>
					<td class="queryContent">
						<span id="sEdtDId" style="color:red;"></span>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="120px">售价(单位分)</td>
					<td class="queryContent" colspan='3'>
						<s:textfield id="sEdtPrice" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="120px">有效时长(单位天)</td>
					<td class="queryContent" colspan='3'>
						<s:textfield id="sEdtPeriod" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="saleEditBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doSaleEdit()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelSaleEdit()">取消</a>
    </div>
</div>

<div id="typeDlg" class="easyui-window" title="" closed="true" style="width:600px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="typeForm"  method="POST">
			<s:hidden name="docId" id="docId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="typeTable">
				<tr>	
					<td class="queryTitle" width="80px">行业分类</td>
					<td class="queryContent">
						<div style="width:80px;float:left"><input type="checkbox" id="typeId1" name="tmplTypeInfo" value="1"/>互联网</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId2" name="tmplTypeInfo" value="2"/>能源</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId3" name="tmplTypeInfo" value="3"/>农牧渔</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId4" name="tmplTypeInfo" value="4"/>医药</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId5" name="tmplTypeInfo" value="5"/>房地产</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId6" name="tmplTypeInfo" value="6"/>机构</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId7" name="tmplTypeInfo" value="7"/>交通</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId8" name="tmplTypeInfo" value="8"/>旅游</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId9" name="tmplTypeInfo" value="9"/>教育</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId10" name="tmplTypeInfo" value="10"/>餐饮</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId11" name="tmplTypeInfo" value="11"/>金融</div>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle">场景分类</td>
					<td class="queryContent">
						<div style="width:80px;float:left"><input type="checkbox" id="typeId12" name="tmplTypeInfo" value="12"/>创业路演</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId13" name="tmplTypeInfo" value="13"/>企业培训</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId14" name="tmplTypeInfo" value="14"/>工作汇报</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId15" name="tmplTypeInfo" value="15"/>发布会</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId16" name="tmplTypeInfo" value="16"/>产品推广</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId17" name="tmplTypeInfo" value="17"/>教学培训</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId18" name="tmplTypeInfo" value="18"/>政府报告</div>
						<div style="width:80px;float:left"><input type="checkbox" id="typeId19" name="tmplTypeInfo" value="19"/>热点主题</div>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="typeBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doPostData()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelPostData()">取消</a>
    </div>
</div>

<div id="orderDlg" class="easyui-window" title="" closed="true" style="width:600px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="orderForm"  method="POST">
			<s:hidden name="docId" id="docId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="orderTable">
				<tr>	
					<td class="queryTitle" width="80px">显示顺序</td>
					<td class="queryContent">
						<s:textfield id="order" name="order" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="orderBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdOrder()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdOrder()">取消</a>
    </div>
</div>

<div id="vipDlg" class="easyui-window" title="" closed="true" style="width:400px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="vipForm"  method="POST">
			<s:hidden name="vDId" id="vDId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="vipTable">
				<tr>	
					<td class="queryTitle" width="120px">模版级别</td>
					<td class="queryContent">
					    <select id="updVip" name="updVip" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
					    		<option value="0" selected>普通模版</option>
								<option value="10">VIP专属模版</option>
						</select> 
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="vipBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdVip()">设定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdVip()">取消</a>
    </div>
</div>

<div id="keywordDlg" class="easyui-window" title="" closed="true" style="width:850px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="keywordForm"  method="POST">
			<s:hidden name="kwDId" id="kwDId"/>
			<s:hidden name="kwType" id="kwType"/>
			<table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="keywordTable">
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="keywordBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="updKW()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelKW()">取消</a>
    </div>
</div>

<div id="topicDlg" class="easyui-window" title="" closed="true" style="width:850px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="topicForm"  method="POST">
			<s:hidden name="stDId" id="stDId"/>
			<s:hidden name="stType" id="stType"/>
			<table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="topicTable">
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="topicBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="updTopic()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelTopic()">取消</a>
    </div>
</div>

<div id="uDocDlg" class="easyui-window" closed="true" style="width:1000px; height:auto;text-align:center; background: #fff;">
	<form id="udocForm"  method="POST">
	<table id="uDocTable" class="queryTable" style="margin: 0px">
		<tr>
			<td class="queryTitle" width="120px"><span style="color:red;font-size:15px;" id="temp_id"></span></td>
			<td class="queryTitle" width="60px" align="right">作品ID</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryDocId" />
			</td>
			<td class="queryTitle" width="60px">用户ID</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryUId" />
			</td>
			<td class="queryTitle" width="60px">用户手机号</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryMobile" />
			</td>
			<td class="queryBtnTd" colspan="2">
				<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery3()">查询</a>
			</td>
		</tr>
	</table>
	</form>
	<div border="false" style="margin-top:0px;">
		<s:hidden name="tempId" id="tempId"></s:hidden>
		<table id="uDocGrid"></table>
	</div>
</div>

<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
<script type="text/javascript" src="${ctx}/js/material/template_info.js"></script>
</body>
</html>
